package com.five.community.mapper;

import com.five.community.bean.Admin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdminMapper {

    List<Map<String, Object>> selectAllAdminAndRoles() throws Exception;

    void insert(Admin admin) throws Exception;

    Admin selectByUsername(String username) throws Exception;
}